-- GENERATED SPELL FOR [Domesticated Felboar] --


function spell0_21195(pUnit, Event) --@Charge,n/a--
pUnit:FullCastSpellOnTarget(22120,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21195', 578, 1)
end

function spell1_21195(pUnit, Event) --@Shadowmoon Tuber,Self--
pUnit:FullCastSpellOnTarget(36462,pUnit)
pUnit:RegisterEvent('Sorts_21195', 538, 1)
end

function Sorts_21195(pUnit, Event)
local choix_sorts_21195 = math.random(0, 1)
if choix_sorts_21195 == 0 then
pUnit:RegisterEvent('spell0_21195', 1, 1)
end
if choix_sorts_21195 == 1 then
pUnit:RegisterEvent('spell1_21195', 1, 1)
end
end

function mob21195_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21195', math.random(1500, 3000), 1)
end

function mob21195_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21195_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21195_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21195, 1, 'mob21195_Action')
RegisterUnitEvent(21195, 2, 'mob21195_Leave')
RegisterUnitEvent(21195, 3, 'mob21195_Kill')
RegisterUnitEvent(21195, 4, 'mob21195_Die')
